# @Author   :   hany
# @Time      :  2021/4/23
from basic.device.Android import Android
from airtest.core.api import *


class personalCreditPage(Android):

    @classmethod
    def clickPersonalCredit(self):
        self.poco(text='个人信用').wait(3).click()

    @classmethod
    def getPersonalCredit(self):
        sleep(2)
        creditText = self.poco(text="您尚未获得南宁市自然人诚信卡").wait(5)
        if creditText.exists():
            return True
